package abstraction.interfaces.animal;

/**
 * 
 * @author gexj
 *
 */
public class Mammal implements Animal {

	@Override
	public void eat() {
		System.out.println("Mammal eats");
	}

	@Override
	public void travel() {
		System.out.println("Mammal travels");
	}

	public int numberOfLegs() {
		return 6;
	}

	public static void main(String args[]) {
		Mammal m = new Mammal();
		m.eat();
		m.travel();
	}
}
